import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

# 加载数据集
df = pd.read_csv('D:\Marine_Fish_Data.csv')

# 选择数值变量
numerical_features = ['Fish_Population', 'Average_Size(cm)', 'Water_Temperature(C)']

# 创建箱线图
plt.figure(figsize=(12, 8))
for feature in numerical_features:
    plt.subplot(2, 2, numerical_features.index(feature) + 1)
    sns.boxplot(x=df[feature])
    plt.title(f'Boxplot of {feature}')

plt.tight_layout()
plt.show()